/*
 * Member.java
 *
 * Created on February 17, 2007, 9:34 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

import java.util.Date;
import java.util.List;

/**
 *
 * @author Sam
 */
public class Member extends BusinessObject{
    private String CreditCard = "";
    private int expmonth = 0;
    private int expyear = 0;
    private double balance = 0;
    private List<AreaOfInterest> arealist;
    private boolean areasSet = false;
    private boolean customerSet = false;
    private Customer customer;
    
    
    /** Creates a new instance of Member */
    public Member(String id) {
        super(id);
    }


    public String getCreditCard() {
        return CreditCard;
    }

    public void setCreditCard(String CreditCard) {
        this.CreditCard = CreditCard;
        this.setDirty(true);
    }

    public int getExpmonth() {
        return expmonth;
    }

    public void setExpmonth(int expmonth) {
        this.expmonth = expmonth;
        this.setDirty(true);
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
        this.setDirty(true);
    }

    public List<AreaOfInterest> getArealist() {
        return arealist;
    }

    public void setArealist(List<AreaOfInterest> arealist) {
        this.arealist = arealist;
        this.setAreasSet(true);
        this.setDirty(true);
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
        this.setDirty(true);
    }

    public int getExpyear() {
        return expyear;
    }

    public void setExpyear(int expyear) {
        this.expyear = expyear;
        this.setDirty(true);
    }

    public boolean isAreasSet() {
        return areasSet;
    }

    public void setAreasSet(boolean areasSet) {
        this.areasSet = areasSet;
    }

    
    
}
